/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>Project: ssmapp - UserMapper
 * <p>Powered by webrx On 2022-03-29 14:24:52
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Service
public interface UserMapper {
    @Select("select * from t_user")
    public List<User> queryAll();

    public int login(@Param("account") String account, @Param("passwd") String password);

    @Select("select passwd from t_user where account = #{account}")
    public String queryPassword(String account);

    public int updatePassword(@Param("account") String account, @Param("passwd") String password);


    @Select("select * from t_user where account = #{account}")
    public User queryByAcoount(String account);

}
